package com.ext.replacedemo;

import java.util.ArrayList;

/**
 * 优先级：局部替换-->忽略的行-->整行替换
 * <p>基于key value去判断，如果该行存在规则，则会忽略该行，不再处理整行替换
 */
public class IgnoredLine {
    public ArrayList<String> sIgnoredKeyList = new ArrayList<>();
    public ArrayList<String> sIgnoredValueList = new ArrayList<>();

    /* startsWith contains endsWith equals*/
    public IgnoredLine(boolean ignoredLine) {
        if (ignoredLine) {
///*startsWith                                              */
            sIgnoredKeyList.add("startsWith");
            sIgnoredValueList.add("//");

            sIgnoredKeyList.add("startsWith");
            sIgnoredValueList.add("all*.exclude");
///*contains                                                  */
            sIgnoredKeyList.add("contains");
            sIgnoredValueList.add("voidregisterReceiver");

            sIgnoredKeyList.add("contains");
            sIgnoredValueList.add("ocalBroadcastManager");

            sIgnoredKeyList.add("contains");
            sIgnoredValueList.add("anager.registerReceiver(");

            sIgnoredKeyList.add("contains");
            sIgnoredValueList.add("Context.RECEIVER_EXPORTED");

            sIgnoredKeyList.add("contains");
            sIgnoredValueList.add("unregisterReceiver");

            sIgnoredKeyList.add("contains");
            sIgnoredValueList.add("requested.group==");

            sIgnoredKeyList.add("contains");
            sIgnoredValueList.add("/*ok*/");
///*endsWith                                                   */
//            sIgnoredKeyList.add("endsWith");
//            sIgnoredValueList.add("");

//          mGradleHashMap.put(  "contains" + mIgnoredRegex + "registerReceiver",
//          mGradleHashMap.put(  "contains" + mIgnoredRegex + "getActivity().registerReceiver",
        }
    }
}